<template>
  <div class="meFollowBox" v-if="follows.length > 0">
    <div class="meFollows">
      <MeFollowItem v-for="item in follows" :key="item" :item="item" />
    </div>
    <div class="bottom">
      <div class="line"></div>
      <div class="end">END</div>
      <div class="line"></div>
    </div>
  </div>
  <div class="meFollowBox" v-else>
    <div class="bottom">四处逛逛，结识有趣的吃货吧</div>
  </div>
</template>

<script setup lang="ts">
import MeFollowItem from "@/components/MeFollowItem.vue";
import { ref } from "vue";

const follows = ref(
  JSON.parse(localStorage.getItem("follow") || "[]").reverse()
);
</script>

<style lang="scss" scoped>
.meFollowBox {
  .meFollows {
  }
  .bottom {
    margin-top: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    color: #999;

    .line {
      width: 25px;
      height: 1px;
      background-color: #e9e9e9;
    }

    .end {
      margin: 0 10px;
      font-size: 12px;
      color: #e9e9e9;
    }
  }
}
</style>
